package org.zjsru.user.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.zjsru.user.pojo.Order;

@FeignClient(value = "order-service")
public interface UserServiceFeign {
    @GetMapping("/order/{userId}")
    Order findOrderByUserId(@PathVariable("userId") Long userId);
}
